Skip to main content

DescribeTags

Description

call DescribeTags query tag list.

Request Method

POST

Request Path

/apsara/route/Slb/DescribeTags

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
DistinctKeyBODYbooleanNofalsewhether it is a DistinctKey. Value:true or false.
PageSizeBODYintegerNo50Number of single-page results, interface default 50, maximum 100.
PageNumberBODYintegerNo1instance list page number, start value 1, default value 1.
regionIdBODYstringYesNo sample value for this parameter.region id
LoadBalancerIdBODYstringNolb-bp1b6c719dfa08ex****load balancing instance ID.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID of the load balancing instance.
versionBODYstringNo2016-01-01version of api
TagsBODYstringNo[{"TagKey":"Key1","TagValue":"Value1"},{"TagKey":"Key2","TagValue":"Value2"}]list of tags to query.

Return data

NameTypeSample valueDescription
InstanceCountinteger10the total number of instances bound by this tag.
TotalCountinteger1The total number of instances obtained according to the filter conditions.
PageSizeinteger50Number of single-page results, interface default 50, maximum 100.
RequestIdstring365F4154-92F6-4AE4-92F8-7FF34B540710request ID.
PageNumberinteger1instance list page number, start value 1, default value 1.
TagSetNo sample value for this parameter.No description for this parameter.
TagKeystringtesttag Key.
TagValuestringapitag value.
TagSetsarray of tagsetNo sample value for this parameter.Tag list.

Example

Successful Response example

{
"InstanceCount":"10",
"TotalCount":"1",
"PageSize":"50",
"RequestId":"365F4154-92F6-4AE4-92F8-7FF34B540710",
"PageNumber":"1",
"TagSet":"",
"TagKey":"test",
"TagValue":"api",
"TagSets":""
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}

title: DescribeVServerGroupAttribute

DescribeVServerGroupAttribute

Description

call the DescribeVServerGroupAttribute to query the details of the server group.

Request Method

POST

Request Path

/apsara/route/Slb/DescribeVServerGroupAttribute

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
VServerGroupIdBODYstringYesrsp-cige6****virtual server group ID.
regionIdBODYstringYesNo sample value for this parameter.region id
RegionIdBODYstringYescn-qingdao-env17-d01the region ID of the load balancing instance.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
VServerGroupIdstringrsp-cige6****virtual server group ID.
ServerTypestringecsNo description for this parameter.
Typestringecsbackend server type, value: ecs(default):ECS instance eni: ENI instance
ServerIdstringvm-233ECS instance ID.
Descriptionstringserver group description.server group description.
RequestIdstring9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18Crequest ID.
BackendServerNo sample value for this parameter.No description for this parameter.
Portinteger90the port used by the backend server.
VServerGroupNamestringGroup1virtual server group name. It is 1 to 80 characters in length and supports Chinese, letters, numbers, dashes (-), forward slashes (/), periods (.), and underscores (_).
BackendServersarray of backendserverNo sample value for this parameter.backend server list.
Weightinteger100the weight of the back-end server.

Example

Successful Response example

{
"VServerGroupId":"rsp-cige6****",
"ServerType":"ecs",
"Type":"ecs",
"ServerId":"vm-233",
"Description":"server group description.",
"RequestId":"9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C",
"BackendServer":"",
"Port":"90",
"VServerGroupName":"Group1",
"BackendServers":"",
"Weight":"100"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}